package com.ssh.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import com.opensymphony.xwork2.ActionSupport;
import com.ssh.entity.Address_List;
import com.ssh.service.UserService;

public class GetAllAction extends ActionSupport {
	@Autowired
	private UserService userService;
	public String SelectAll(){
		List<Address_List> list=userService.selectAll();
		HttpServletRequest request=ServletActionContext.getRequest();
		request.setAttribute("list",list);
		return "main";
	}
}
